package com.vicent.service;

import com.vicent.entity.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vicent.enums.OrderStatus;
import com.vicent.enums.PayType;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author vincent
 * @since 2023-09-01
 */
public interface OrderInfoService extends IService<OrderInfo> {

    OrderInfo createOrderByProductId(Long productId, String payType);
    OrderInfo getOrderByOrderNo(String orderNo);
    String getOrderStatus(String orderNo);
    void updateStatusByOrderNo(String orderNo, OrderStatus orderStatus);
}
